package com.xyzboom.beans;

import com.xyzboom.database.entity.User;

public class Login {
    private final User user;
    private String verify_code;

    public Login(String username, String password, String verify_code, String college, String major) {
        user = new User(username, password, college, major);
        this.verify_code = verify_code;
    }

    public String getUsername() {
        return user.getUsername();
    }

    public void setUsername(String username) {
        user.setUsername(username);
    }

    public String getPassword() {
        return user.getPassword();
    }

    public void setPassword(String password) {
        user.setPassword(password);
    }

    public String getVerify_code() {
        return verify_code;
    }

    public void setVerify_code(String verify_code) {
        this.verify_code = verify_code;
    }

    public String getSchool() {
        return user.getSchool();
    }

    public void setSchool(String college) {
        user.setSchool(college);
    }

    public String getDepartment() {
        return user.getDepartment();
    }

    public void setDepartment(String major) {
        user.setDepartment(major);
    }

    public void setUserId(int userId) {
        user.setId(userId);
    }

    public int getUserId() {
        return user.getId();
    }

    public Login() {
        user = new User();
    }
}
